<script setup>

import { ref } from 'vue';
import { material } from '@/api/index'
import { useRoute } from 'vue-router';
const route = useRoute()
const html = ref('')
console.log(route.query.name);
const mateFn = async () => {
    await material(route.query.name).then(content => {
        console.log(content);
        html.value = content.data
        console.log(html.value);

    })

}
mateFn();

</script>
<template>
    <div v-html="html">

    </div>
</template>